package com.chenhao.springcloud.chenhaodesignservice.pattern.structural.decorator.v2;

/**
 * Description:
 *
 * @author chenhao
 * @date 2020/12/23 11:20
 */
public class AbstractDecorator  extends  ABattercake{

    private ABattercake aBattercake;

    public AbstractDecorator(ABattercake aBattercake) {
        this.aBattercake = aBattercake;
    }

    @Override
    protected String getDesc() {
        return this.aBattercake.getDesc();
    }

    @Override
    protected int cost() {
        return this.aBattercake.cost();
    }
}
